//
//  LivephotoLib.h
//  WallpaperHdLib
//
//  Created by czera on 2021/3/6.
//

#import <Foundation/Foundation.h>
#import <Photos/Photos.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^ResultBlock)(NSURL *path, BOOL success);

@interface LivephotoLib : NSObject <UINavigationControllerDelegate,UIImagePickerControllerDelegate>

+ (id)sharePhotoLibrary;

+ (void)getlibraryAuthorization;

+ (BOOL)photoLibraryIsAuth;

+ (void)writeLivePhotoWithVideo:(NSURL *)videoPath image:(NSURL *)imagePath result:(void(^)(BOOL res))result;

- (void)chooseVideoFromPhotoLibraryResult:(ResultBlock)result;

@end

NS_ASSUME_NONNULL_END
